<div>
  
<div class="panel panel-default mt10">
<div class="panel-body">
<div class="col-sm-12">

    <div class="row ">

        <!-- <div class="col-sm-2">
            <input type="text" class="form-control"  ng-model="searchform.order_code" placeholder="订单编号"> 
        </div> -->
      
        <div class="col-sm-2">
          <input class="form-control" datetimepicker readonly
          placeholder="开始时间"
          ng-model="searchform.start_time_date" 
          options="vm.options"
          />
        </div>
        <div class="col-sm-2">
          <input class="form-control" datetimepicker readonly
          placeholder="结束时间"
          ng-model="searchform.end_time_date" 
          options="vm.options"
          />
        </div>

        <div class="col-sm-2 col-sm-offset-4">
            <button class="btn btn-block btn-info"
            ng-click="load()"
            :ng-disabled="searchState"
            >搜索</button> 
        </div>

        <div class="col-sm-2 ">
            <button class="btn btn-block btn-default"
            ng-click="toExcel()"
            >导出 Excel</button> 
        </div>

    </div>

</div>
</div>
</div>
<!-- searchArea -->


<table class="table table-bordered table-hover">
  <thead>
    <tr>
      <th class="col-xs-5 text-right">产品名称</th>
      <th class="col-xs-1 text-center">实际收入</th>
      <th class="col-xs-1 text-center">一级分佣</th>
      <th class="col-xs-1 text-center">二级分佣</th>
      <th class="col-xs-1 text-center">分销其他</th>
      <th class="col-xs-1 text-center">微信费用</th>
      <th class="col-xs-1 text-center">系统分佣</th>
      <th class="col-xs-1 text-center">优惠券</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td class="text-right"><strong>合计</strong></td>
      <td class="text-center red">{{total.total_price}}</td>
      <td class="text-center red">{{total.one_price}}</td>
      <td class="text-center red">{{total.two_price}}</td>
      <td class="text-center red">{{total.profit_wb}}</td>
      <td class="text-center red">{{total.sxf_price}}</td>
      <td class="text-center red">{{total.sys_price}}</td>
      <td class="text-center red">{{total.voucher_price}}</td>
    </tr>
    <tr ng-repeat="obj in objs">
      <td class="text-right">
        {{obj.name}}
      </td>
      <td class="text-center">
        {{obj.total_price}}
      </td>
      <td class="text-center">
        {{obj.one_price}}
      </td>
      <td class="text-center">
        {{obj.two_price}}
      </td>
      <td class="text-center">
        {{obj.profit_wb}}
      </td>
      <td class="text-center">
        {{obj.sxf_price}}
      </td>
      <td class="text-center">
        {{obj.sys_price}}
      </td>
      <td class="text-center">
        {{obj.voucher_price}}
      </td>

    </tr>
    
  </tbody>
</table>


</div>